my_str = "itheima itcast boxuege"
count = my_str.count("it")
print(f"字符串{my_str}中有{count}个it")
new_my_str = my_str.replace(" ","|")
print(f"将字符串{my_str}中的' '全部替换为'|'后的字符串为{new_my_str}")
my_str_list = new_my_str.split("|")
print(f"分割后为{my_str_list}")
